import { defaultTheme } from '@vuepress/theme-default'
import { defineUserConfig } from 'vuepress/cli'
import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({
  locales: {
    // 键名是该语言所属的子路径
    // 作为特例，默认语言可以使用 '/' 作为其路径。
    '/': {
      lang: 'zh-CN',
      title: 'VuePress',
      description: 'Vue 驱动的静态网站生成器',
    },
    '/en/': {
      lang: 'en-US',
      title: 'VuePress',
      description: 'Vue-powered Static Site Generator',
    },
  },
  theme: defaultTheme({
    locales: {
      '/': {
        navbar: [
          {
            text: '首页',
            link: '/'
          },
          {
            text: '开始',
            link: '/get-started'
          },
          {
            text: '关于我们',
            link: '/about'
          },
        ],
        selectLanguageName: '简体中文',
        selectLanguageText: '选择语言',
      },
      '/en/': {
        navbar: [
          {
            text: 'Home',
            link: '/en/'
          },
          {
            text: 'Get Started',
            link: '/en/get-started'
          },
          {
            text: 'About Us',
            link: '/en/about'
          },
        ],
        selectLanguageName: 'English',
        selectLanguageText: 'Languages',
      },
      
    },
    logo: 'https://vuejs.press/images/hero.png',

    
  }),

  bundler: viteBundler(),
})
